import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';

import { ApesSubtotalComponent } from './apes-subtotal.component';
import { ApesSubtotalLeftComponent } from './apes-subtotal-left.component';
import { ApesSubtotalRightComponent } from './apes-subtotal-right.component';

const COMPONENTS = [
    ApesSubtotalComponent,
    ApesSubtotalLeftComponent,
    ApesSubtotalRightComponent
];

@NgModule({
    imports:        [CommonModule],
    declarations:   [...COMPONENTS],
    exports:        [...COMPONENTS]
})
export class ApesSubtotalModule {
    static forRoot(): ModuleWithProviders {
        return { ngModule: ApesSubtotalModule, providers: [] };
    }
}
